// dnSpy decompiler from Assembly-CSharp.dll class: BannerAds
using System;
//using GoogleMobileAds.Api;
using UnityEngine;

public class BannerAds : MonoBehaviour
{
	private void Awake()
	{
		if (null == BannerAds.instance)
		{
			BannerAds.instance = this;
			UnityEngine.Object.DontDestroyOnLoad(base.gameObject);
		}
		else
		{
			UnityEngine.Object.Destroy(base.gameObject);
		}
	}

	private void Start()
	{
		if (BannerAds.instance != this)
		{
			return;
		}
		this.CreateBanner("ca-app-pub-3155579104247194/7566680868");
	}

	private void CreateBanner(string id)
	{
		//this.bannerView = new BannerView(id, AdSize.SmartBanner, AdPosition.Bottom);
		//AdRequest request = new AdRequest.Builder().AddKeyword("kids").AddKeyword("girls").AddKeyword("children").AddKeyword("dress up").AddKeyword("dress-up").AddKeyword("casual").AddKeyword("cake").AddKeyword("doctor").AddKeyword("salon").AddKeyword("farms").AddKeyword("pets").TagForChildDirectedTreatment(true).Build();
		//this.bannerView.LoadAd(request);
	}

	private void OnDestroy()
	{
		if (BannerAds.instance == this)
		{
			BannerAds.instance = null;
			//if (this.bannerView != null)
			//{
			//	this.bannerView.Destroy();
			//	this.bannerView = null;
			//}
		}
	}

	public static void Show()
	{
		//if (null != BannerAds.instance && BannerAds.instance.bannerView != null)
		//{
		//	BannerAds.instance.bannerView.Show();
		//}
	}

	public static void Hide()
	{
		//if (null != BannerAds.instance && BannerAds.instance.bannerView != null)
		//{
		//	BannerAds.instance.bannerView.Hide();
		//}
	}

	private const string ADMOB_BANNER_ID_ANDROID = "ca-app-pub-3155579104247194/7566680868";

	private const string ADMOB_BANNER_ID_IOS = "ca-app-pub-3155579104247194/7566680868";

	private static BannerAds instance;

	//private BannerView bannerView;
}
